﻿
using Aliphant.Tool.ExcelToJson;
using Aliphant.Tool.ExcelToJson.Interface;

namespace Aliphant.ToolCenter
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string filePath = args[0];
            string jsonPath = filePath.Replace(Path.GetExtension(filePath), ".json");

            IReader reader = ExcelToJsonFactory.CreateReader();
            IConverter converter = ExcelToJsonFactory.CreateConverter();

            reader.Read(filePath);
            converter.OnAnalysis(jsonPath);

            Console.WriteLine("转化完成");
        }
    }
}